package mysql

import (
	"context"

	"github.com/gogf/gf/v2/frame/g"
)

type MysqlReq struct {
	g.Meta `tags:"Mysql" method:"get" summary:"数据库操作接口"`
	TableName string `v:"required" dc:"表名"`
	Path string `dc:"路径"`
}
type MysqlRes struct {
	g.Meta `mime:"text/html" example:"string"`
}

type IMysqlApi interface {
	Dump(ctx context.Context, req *MysqlReq) (res *MysqlRes, error error)

	Clear(ctx context.Context, req *MysqlReq) (res *MysqlRes, error error)
}
